export default {
	jump(jump_type, jump_link) {
		console.info(jump_type + " --- " + jump_link);
		if(jump_type == "") {
			console.info(jump_type);
			return ;
		}
		
		 
		 
		if(jump_type == "return_one") {
			let pages = getCurrentPages(); // 当前页面
			let beforePage = pages[pages.length - 2]; // 前一个页面
			//console.log('当前页面'+"beforePage");
			//console.log('前一个页'+beforePage);
			
			uni.navigateBack({
			    delta: 1,
				success: function() {
				    //beforePage.onPullDownRefresh(); // 执行前一个页面的onLoad方法
					//console.log('后退并刷新页面==='+beforePage);
				}
			});
		}
		if(jump_type == "index") { //首页
			uni.redirectTo({
			    url: '/pages/index/index'
			});
		}
		if(jump_type == "login") { //登录
			uni.navigateTo({
			    url: '/pages/my/login'
			});
		}
		if(jump_type == "register") { //注册
			uni.navigateTo({
			    url: '/pages/my/login?type=reg' 
			});
		}
		if(jump_type == "my") { //我的主页
			uni.switchTab({
			    url: '/pages/my/my'
			});
		}
		
		if(jump_type == "user_info") { //个人资料
			uni.navigateTo({
			    url: '/pages/my/personalData'
			});
		}
		if(jump_type == "search") { //搜索
			uni.navigateTo({
			    url: '/pages/index/search'
			});
		}
		if(jump_type == "search_view") { //搜索
			uni.navigateTo({
			    url: '/pages/index/searchResult?keywords='+jump_link
			});
		}
		if(jump_type == "confirmGive") { //赠送
			uni.navigateTo({
			    url: '/pages/my/give?id='+jump_link
			});
		}
		if(jump_type == "giveInfo") { //赠送
			uni.navigateTo({
			    url: '/pages/my/giveInfo?id='+jump_link
			});
		}
		if(jump_type == "article_list") { //文章列表
			uni.navigateTo({
			    url: '/pages/index/information'
			});
		}
		if(jump_type == "article_list_for_cate") { //某个分类下文章列表
			uni.navigateTo({
			    url: '/pages/index/information?cateId='+jump_link
			});
		}
		if(jump_type == "article_view") { //文章详情
			uni.navigateTo({
			    url: '/pages/index/workDetails?id='+jump_link
			});
		}
		if(jump_type == "article_evaluate_list") { //文章评论列表
			uni.navigateTo({
				url: '/pages/index/evaluate?type=article&id='+jump_link
			});
		}
		
		if(jump_type == "success") { //成功提示页 
			uni.redirectTo({
			    url: '/pages/common/submitSuccessfully?'+jump_link
			});
		}
		
		if(jump_type == "store") { //买鱼
			uni.switchTab({
			    url: '/pages/store/index'
			});
		}
		if(jump_type == "product_list") { //某个分类下产品列表
			uni.setStorageSync('param_filter', 1);
			uni.switchTab({
				url: '/pages/store/index',
			});
		}
		if(jump_type == "product_list_for_cate") { //某个分类下产品列表
			uni.setStorageSync('param_filter', jump_link);
			uni.switchTab({
				url: '/pages/store/index',
			});
		}
		if(jump_type == "product_view") { //产品列表
			uni.navigateTo({
			    url: '/pages/store/productDetail?id='+jump_link
			});
		}
		if(jump_type == "card_list") { //实物礼品卡
			uni.setStorageSync('param_filter', -1);
			uni.switchTab({
				url: '/pages/store/index',
			});
		}
		if(jump_type == "card_list2") { //电子礼品卡
			uni.setStorageSync('param_filter', -2);
			uni.switchTab({
				url: '/pages/store/index',
			});
		}
		if(jump_type == "card_view") { //产品列表
			uni.navigateTo({
			    url: '/pages/store/cardDetail?id='+jump_link
			});
		}
		if(jump_type == "confirmCart") { //提交订单
			uni.navigateTo({
			    url: '/pages/store/confirmCart?'+jump_link
			});
		}
		if(jump_type == "cart") { //购物车
			uni.navigateTo({
			    url: '/pages/my/shoppingCart'
			});
		}
		if(jump_type == "addOrder") { //提交订单
			uni.navigateTo({
			    url: '/pages/store/confirmOrder?'+jump_link
			});
		}
		if(jump_type == 'pickup') {
			uni.switchTab({
				url: '/pages/store/pickup'
			});
		}
		if(jump_type == 'confirmPickup') {
			uni.navigateTo({
			    url: '/pages/store/confirmPickup?id='+jump_link
			});
		}
		if(jump_type == "message") { //消息主页
			uni.navigateTo({
			    url: '/pages/my/message',
			});
		}
		if(jump_type == "cardList") { //日志
			uni.navigateTo({
			    url: '/pages/my/cardList?'+jump_link
			});
		}
		if(jump_type == "forceDetail") { //日志
			uni.navigateTo({
			    url: '/pages/my/forceDetail?'+jump_link
			});
		}
		if(jump_type == "agreement") { //协议
			uni.navigateTo({
			    url: '/pages/common/agreement?type='+jump_link
			});
		}
		if(jump_type == "collect") { //我的收藏
			uni.navigateTo({
			    url: '/pages/my/myFavorite'
			});
		}
		if(jump_type == "address") { //收货地址
			uni.navigateTo({
			    url: '/pages/my/deliveryAddress?'+jump_link
			});
		}
		if(jump_type == "addOreditAddress") { //新增或修改收货地址
			uni.navigateTo({
			    url: '/pages/my/newAddress?'+jump_link
			});
		}
		if(jump_type == "my_order_list") { //我的订单
			uni.navigateTo({
			    url: '/pages/my/myOrder?'+jump_link
			});
		}
		if(jump_type == "order_view") { //订单详情
			uni.navigateTo({
			    url: '/pages/my/orderDetails?id='+jump_link
			});
		}
		if(jump_type == "evaluate_order") { //评价
			uni.navigateTo({
			    url: '/pages/my/comment?id='+jump_link
			});
		}
		if(jump_type == "select_delivery") { //物流查询
			uni.navigateTo({
			    url: '/pages/my/logisticsInformation?id='+jump_link
			});
		}
		if(jump_type == "withdraw") { //申请提现
			uni.navigateTo({
				url: '/pages/my/withdraw'
			});
		}
		if(jump_type == "withdraw_list") { //提现列表
			uni.navigateTo({
				url: '/pages/my/withdrawList'
			});
		}
		if(jump_type == "apply_refund") { //售后申请
			uni.navigateTo({
			    url: '/pages/my/applySales?id='+jump_link
			});
		}
		if(jump_type == "refund_list") { //售后列表
			uni.navigateTo({
			    url: '/pages/my/afterSale'
			});
		}
		if(jump_type == "refund_view") { //售后申请
			uni.navigateTo({
			    url: '/pages/my/saleDatails?id='+jump_link
			});
		}
		if(jump_type == "refund_product") { //售后退货
			uni.navigateTo({
			    url: '/pages/my/refund?id='+jump_link
			});
		}
		if(jump_type == "volunteer_apply") { //志愿者申请
			uni.navigateTo({
			    url: '/pages/my/applyVolunteer'
			});
		}
		if(jump_type == "volunteer_info") { //推广中心
			uni.navigateTo({
			    url: '/pages/my/volunteerInfo'
			});
		}
		if(jump_type == "scancode") { //扫码
			uni.redirectTo({
			    url: '/pages/index/scancode'
			});
		}
		if(jump_type == "gotourl") { //拖动测试
			uni.navigateTo({
			    url: jump_link
			});
		}
	}
}